package com.xkdx.guangguang.fragment.myinfomation;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import android.content.Context;

import com.xkdx.guangguang.module.network.AbsAction;
import com.xkdx.guangguang.module.statics.IConstants;

public class DeleteInfoSelfAction extends AbsAction {

	private String userid, loginToken, deviceType, messageID;

	public DeleteInfoSelfAction(String userid, String loginToken,
			String deviceType, String msgid) {
		this.url = IConstants.INFO_URL;
		this.userid = userid;
		this.loginToken = loginToken;
		this.deviceType = deviceType;
		this.messageID = msgid;

	}

	@Override
	public void constructRequest() {
		HashMap<String, String> map = new HashMap<String, String>();
		map.put("UserID", userid);
		map.put("LoginToken", loginToken);
		map.put("DeviceType", deviceType);
		map.put("MsgID", messageID);

		String json = constructJson(map);
		Parameter parameter = new Parameter("InfoCenterChapterAction",
				"DelUserInfoItem", json);

		List<Parameter> list = new ArrayList<Parameter>();
		list.add(parameter);

		requestData = constructMod(list);

	}
}
